package com.open.ssm.mqtt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * MQTT相关配置信息
 *
 * @version: v1.0.0
 * @author: wangpf
 * @date: 2022年11月29日 下午3:23:59
 */
@Component
public class MqttConfig {
	
    @Value("${mqtt.server.username}")
    private String username;
    
    @Value("${mqtt.server.password}")
    private String password;
    
    @Value("${mqtt.server.serverURI}")
    private String serverURI;
    
    @Value("${mqtt.server.keepAliveInterval}")
    private int keepAliveInterval;
    
    @Value("${mqtt.server.connectionTimeout}")
    private int connectionTimeout;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getServerURI() {
		return serverURI;
	}

	public void setServerURI(String serverURI) {
		this.serverURI = serverURI;
	}

	public int getKeepAliveInterval() {
		return keepAliveInterval;
	}

	public void setKeepAliveInterval(int keepAliveInterval) {
		this.keepAliveInterval = keepAliveInterval;
	}

	public int getConnectionTimeout() {
		return connectionTimeout;
	}

	public void setConnectionTimeout(int connectionTimeout) {
		this.connectionTimeout = connectionTimeout;
	}
}
